package IHM;

import java.awt.Color;

import javax.swing.JPanel;
import javax.swing.border.BevelBorder;

public class LED extends JPanel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public LED(){
		this.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
		this.setBackground(Color.LIGHT_GRAY);
	}
	
	public void allumer(){
		this.setBackground(Color.GREEN);
	}

	public void eteindre(){
		this.setBackground(Color.LIGHT_GRAY);
	}
}
